/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.hitechbangla.fctu.drawingTools;

import fctu.simulator.HTB_MAIN;
import java.awt.Graphics;

/**
 *
 * @author HTB
 */
public class CircleDrawable implements DrawableFigure {
    double centerX, centerY, radius;
    
   public CircleDrawable(double centerX, double centerY, double radius)
   {
       this.centerX = centerX;
       this.centerY = centerY;
       this.radius = radius;
   }

    @Override
    public void draw(Graphics g) {
        //throw new UnsupportedOperationException("Not supported yet.");
        
        int cX = (int) (centerX*HTB_MAIN.one_px_equivalent_naut);
        int cY = (int) (centerY*HTB_MAIN.one_px_equivalent_naut);
        
        int rad = (int) (radius*HTB_MAIN.one_px_equivalent_naut);
        
        g.drawOval(cX - rad, cY - rad, rad * 2, rad * 2);
        
        
    }
   
   
}
